//
//  ArtistCell.m
//  XDCommonApp
//
//  Created by XD-XY on 3/10/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "ArtistCell.h"
#import "XDHeader.h"
@implementation ArtistCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self makeView];
    }
    return self;
}

-(void)makeView
{
    self.headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 64/2, 64/2)];
    
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(129/2.0f, 37/2.0f, 30, 15)];
    _nameLabel.textColor =TEXTBLACKCOLORE;
    _nameLabel.backgroundColor = [UIColor redColor];_nameLabel.font = [UIFont systemFontOfSize:15];

    
    self.numbersLabel = [[UILabel alloc] initWithFrame:CGRectMake(width_x(_nameLabel)+23/2.0f, 40/2.0f, 100, 12.5)];
    _numbersLabel.font = [UIFont systemFontOfSize:12.5];
    _numbersLabel.textColor = TEXTBLACKCOLORE2;
    
    self.browseLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,0,(640-45)/2.0f,101/2.0f)];
    _browseLabel.font = [UIFont systemFontOfSize:12];
    _browseLabel.textAlignment = NSTextAlignmentRight;
    _browseLabel.textColor = TEXTBLACKCOLORE2;

//    self.rightImageView = [[UIImageView alloc] initWithFrame:CGRectMake(_browseLabel.frame.origin.x-13/2.0f-24/2,42/2.0f, 24/2, 16/2)];
    self.rightImageView = [[UIImageView alloc] initWithFrame:CGRectMake(UI_SCREEN_WIDTH-93/2.0f-24/2.0f-4,42/2.0f, 24/2, 16/2)];
    _rightImageView.image = [UIImage imageNamed:@"hotPoint_attention"];
    
    _headImageView.backgroundColor = [UIColor clearColor];
    _nameLabel.backgroundColor = [UIColor clearColor];
    _numbersLabel.backgroundColor = [UIColor clearColor];
    _browseLabel.backgroundColor = [UIColor clearColor];
    
    
    [self addSubview:_headImageView];
    [self addSubview:_nameLabel];
    [self addSubview:_numbersLabel];
    [self addSubview:_browseLabel];
    [self addSubview:_rightImageView];
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
